.class public Lcom/ninesky/widget/SlidingToggle;
.super Landroid/widget/FrameLayout;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field private A:I

.field private B:I

.field private C:I

.field private a:Ljava/lang/String;

.field private b:Ljava/lang/String;

.field private c:I

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private j:I

.field private k:Z

.field private l:F

.field private m:I

.field private n:Landroid/content/res/ColorStateList;

.field private o:Landroid/content/res/ColorStateList;

.field private p:I

.field private q:I

.field private r:I

.field private s:I

.field private t:I

.field private u:I

.field private v:Lcom/ninesky/widget/f;

.field private w:Z

.field private x:Landroid/widget/HorizontalScrollView;

.field private y:I

.field private z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/ninesky/widget/SlidingToggle;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/ninesky/widget/SlidingToggle;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 10

    const/4 v9, 0x1

    const v8, 0x7f0c0058

    const v7, 0x7f0c0057

    const/4 v6, -0x1

    const/4 v5, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-boolean v5, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030020

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v0, 0x7f0c0059

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/HorizontalScrollView;

    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v0, p0}, Landroid/widget/HorizontalScrollView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    sget-object v0, Lcom/ninesky/widget/a;->a:[I

    invoke-virtual {p1, p2, v0, p3, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/TypedArray;->getIndexCount()I

    move-result v2

    move v3, v5

    :goto_0
    if-lt v3, v2, :cond_2

    invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->b:Ljava/lang/String;

    if-nez v0, :cond_7

    invoke-virtual {p0}, Lcom/ninesky/widget/SlidingToggle;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f070001

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_1
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->b:Ljava/lang/String;

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->a:Ljava/lang/String;

    if-nez v0, :cond_8

    invoke-virtual {p0}, Lcom/ninesky/widget/SlidingToggle;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const/high16 v1, 0x7f07

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_2
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->a:Ljava/lang/String;

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-nez v0, :cond_9

    const/high16 v0, 0x4180

    :goto_3
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    if-nez v0, :cond_a

    const-string v0, "#ff565656"

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-static {v0}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    :goto_4
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    if-nez v0, :cond_b

    const-string v0, "#ff565656"

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-static {v0}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    :goto_5
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    if-nez v0, :cond_c

    const v0, 0x7f02007b

    :goto_6
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    if-nez v0, :cond_d

    const v0, 0x7f02007a

    :goto_7
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    if-nez v0, :cond_e

    const v0, 0x7f02007d

    :goto_8
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->h:I

    if-nez v0, :cond_f

    const v0, 0x7f02007c

    :goto_9
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->h:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->i:I

    if-nez v0, :cond_10

    move v0, v5

    :goto_a
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->i:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->j:I

    if-nez v0, :cond_11

    move v0, v5

    :goto_b
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->j:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    const/4 v0, 0x2

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->m:I

    invoke-virtual {p0, v7}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextSize(F)V

    invoke-virtual {p0, v8}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextSize(F)V

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    if-eqz v0, :cond_0

    invoke-virtual {p0, v7}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    :cond_0
    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    if-eqz v0, :cond_1

    invoke-virtual {p0, v8}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    :cond_1
    iget-object v1, p0, Lcom/ninesky/widget/SlidingToggle;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/ninesky/widget/SlidingToggle;->b:Ljava/lang/String;

    iput-object v1, p0, Lcom/ninesky/widget/SlidingToggle;->a:Ljava/lang/String;

    iput-object v2, p0, Lcom/ninesky/widget/SlidingToggle;->b:Ljava/lang/String;

    invoke-virtual {p0, v7}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p0, v8}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    iput v1, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    invoke-virtual {p0, v7}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iput v2, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    invoke-virtual {p0, v8}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    iput v1, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    const v0, 0x7f0c005b

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    invoke-direct {p0}, Lcom/ninesky/widget/SlidingToggle;->b()V

    return-void

    :cond_2
    invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->getIndex(I)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_c
    :pswitch_0
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto/16 :goto_0

    :pswitch_1
    const/16 v0, 0x64

    invoke-virtual {v1, v9, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->c:I

    goto :goto_c

    :pswitch_2
    const/16 v0, 0x22

    invoke-virtual {v1, v5, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->d:I

    goto :goto_c

    :pswitch_3
    const/4 v0, 0x3

    invoke-virtual {v1, v0, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    goto :goto_c

    :pswitch_4
    const/4 v0, 0x6

    invoke-virtual {v1, v0, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    if-lez v0, :cond_3

    invoke-virtual {v1}, Landroid/content/res/TypedArray;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_d
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->b:Ljava/lang/String;

    goto :goto_c

    :cond_3
    const/4 v0, 0x6

    invoke-virtual {v1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_d

    :pswitch_5
    const/4 v0, 0x2

    invoke-virtual {v1, v0, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    goto :goto_c

    :pswitch_6
    const/4 v0, 0x5

    invoke-virtual {v1, v0, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    if-lez v0, :cond_4

    invoke-virtual {v1}, Landroid/content/res/TypedArray;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_e
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->a:Ljava/lang/String;

    goto :goto_c

    :cond_4
    const/4 v0, 0x5

    invoke-virtual {v1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_e

    :pswitch_7
    const/4 v0, 0x7

    invoke-virtual {v1, v0, v9}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v0

    iput-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    goto :goto_c

    :pswitch_8
    const/4 v0, 0x4

    invoke-virtual {v1, v0, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    goto :goto_c

    :pswitch_9
    const/16 v0, 0x9

    invoke-virtual {v1, v0, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    if-lez v0, :cond_5

    invoke-virtual {v1}, Landroid/content/res/TypedArray;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    :goto_f
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    goto :goto_c

    :cond_5
    const/16 v0, 0x9

    invoke-virtual {v1, v0}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    goto :goto_f

    :pswitch_a
    const/16 v0, 0x8

    invoke-virtual {v1, v0, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    if-lez v0, :cond_6

    invoke-virtual {v1}, Landroid/content/res/TypedArray;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    :goto_10
    iput-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    goto/16 :goto_c

    :cond_6
    const/16 v0, 0x8

    invoke-virtual {v1, v0}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    goto :goto_10

    :pswitch_b
    const/16 v0, 0xb

    invoke-virtual {v1, v0, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->h:I

    goto/16 :goto_c

    :pswitch_c
    const/16 v0, 0xc

    invoke-virtual {v1, v0, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->i:I

    goto/16 :goto_c

    :pswitch_d
    const/16 v0, 0xd

    invoke-virtual {v1, v0, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->j:I

    goto/16 :goto_c

    :cond_7
    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->b:Ljava/lang/String;

    goto/16 :goto_1

    :cond_8
    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->a:Ljava/lang/String;

    goto/16 :goto_2

    :cond_9
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->l:F

    goto/16 :goto_3

    :cond_a
    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->n:Landroid/content/res/ColorStateList;

    goto/16 :goto_4

    :cond_b
    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->o:Landroid/content/res/ColorStateList;

    goto/16 :goto_5

    :cond_c
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    goto/16 :goto_6

    :cond_d
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    goto/16 :goto_7

    :cond_e
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    goto/16 :goto_8

    :cond_f
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->h:I

    goto/16 :goto_9

    :cond_10
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->i:I

    goto/16 :goto_a

    :cond_11
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->j:I

    goto/16 :goto_b

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_5
        :pswitch_3
        :pswitch_8
        :pswitch_6
        :pswitch_4
        :pswitch_7
        :pswitch_a
        :pswitch_9
        :pswitch_0
        :pswitch_b
        :pswitch_c
        :pswitch_d
    .end packed-switch
.end method

.method static synthetic a(Lcom/ninesky/widget/SlidingToggle;Z)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/ninesky/widget/SlidingToggle;->b(Z)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/widget/SlidingToggle;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    return v0
.end method

.method private b()V
    .locals 4

    const v0, 0x7f0c0056

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->d:I

    iget v3, p0, Lcom/ninesky/widget/SlidingToggle;->c:I

    invoke-direct {v1, v2, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->c:I

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->u:I

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->r:I

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->s:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->d:I

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->p:I

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->q:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->p:I

    add-int/lit8 v0, v0, 0x5

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->t:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->t:I

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->A:I

    const v0, 0x7f0c0057

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->p:I

    iget v3, p0, Lcom/ninesky/widget/SlidingToggle;->r:I

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f0c0058

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->q:I

    iget v3, p0, Lcom/ninesky/widget/SlidingToggle;->s:I

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f0c005a

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->p:I

    iget v3, p0, Lcom/ninesky/widget/SlidingToggle;->q:I

    add-int/2addr v2, v3

    iget v3, p0, Lcom/ninesky/widget/SlidingToggle;->t:I

    add-int/2addr v2, v3

    const/16 v3, 0xa

    sub-int/2addr v2, v3

    const/4 v3, -0x1

    invoke-direct {v1, v2, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f0c005b

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->t:I

    iget v3, p0, Lcom/ninesky/widget/SlidingToggle;->u:I

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xd

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->d:I

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->t:I

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->z:I

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    new-instance v1, Lcom/ninesky/widget/b;

    invoke-direct {v1, p0}, Lcom/ninesky/widget/b;-><init>(Lcom/ninesky/widget/SlidingToggle;)V

    invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method private b(Z)V
    .locals 3

    const/4 v2, 0x0

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v0, v2, v2}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    invoke-virtual {v0, v1, v2}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V

    goto :goto_0
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->v:Lcom/ninesky/widget/f;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->v:Lcom/ninesky/widget/f;

    iget-boolean v1, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    invoke-interface {v0, v1}, Lcom/ninesky/widget/f;->a(Z)V

    :cond_0
    return-void
.end method


# virtual methods
.method public final a(II)V
    .locals 0

    iput p2, p0, Lcom/ninesky/widget/SlidingToggle;->c:I

    iput p1, p0, Lcom/ninesky/widget/SlidingToggle;->d:I

    invoke-direct {p0}, Lcom/ninesky/widget/SlidingToggle;->b()V

    return-void
.end method

.method public final a(Lcom/ninesky/widget/f;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/widget/SlidingToggle;->v:Lcom/ninesky/widget/f;

    return-void
.end method

.method public final a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    invoke-direct {p0}, Lcom/ninesky/widget/SlidingToggle;->b()V

    return-void
.end method

.method public final a()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    return v0
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x1

    invoke-virtual {p0}, Lcom/ninesky/widget/SlidingToggle;->isEnabled()Z

    move-result v0

    if-nez v0, :cond_1

    move v0, v3

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    iget-object v2, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v2}, Landroid/widget/HorizontalScrollView;->getScrollX()I

    move-result v2

    iput v2, p0, Lcom/ninesky/widget/SlidingToggle;->B:I

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    :cond_2
    move v0, v4

    :goto_1
    iget-boolean v1, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    if-nez v1, :cond_0

    move v0, v3

    goto :goto_0

    :pswitch_0
    iget-boolean v2, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    if-eqz v2, :cond_2

    if-ltz v0, :cond_3

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->d:I

    if-gt v0, v2, :cond_3

    if-ltz v1, :cond_3

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->c:I

    if-le v1, v0, :cond_2

    :cond_3
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->B:I

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->z:I

    if-lt v0, v1, :cond_5

    move v0, v4

    :goto_2
    iget-boolean v1, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    if-eq v1, v0, :cond_4

    iput-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    invoke-direct {p0}, Lcom/ninesky/widget/SlidingToggle;->c()V

    :cond_4
    iget-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    invoke-direct {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->b(Z)V

    move v0, v3

    goto :goto_1

    :cond_5
    move v0, v3

    goto :goto_2

    :pswitch_1
    iget-boolean v1, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    if-nez v1, :cond_2

    iput-boolean v3, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->B:I

    if-nez v1, :cond_7

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    if-ge v0, v1, :cond_2

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    iget v2, p0, Lcom/ninesky/widget/SlidingToggle;->A:I

    add-int/2addr v1, v2

    sub-int v0, v1, v0

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    if-le v0, v1, :cond_6

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    :goto_3
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    invoke-virtual {v0, v1, v4}, Landroid/widget/HorizontalScrollView;->scrollTo(II)V

    move v0, v3

    goto :goto_1

    :cond_6
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    goto :goto_3

    :cond_7
    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->y:I

    if-le v0, v1, :cond_2

    iget-object v1, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v1}, Landroid/widget/HorizontalScrollView;->getWidth()I

    move-result v1

    sub-int v0, v1, v0

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->A:I

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    if-gez v0, :cond_8

    move v0, v4

    :goto_4
    iput v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    iget-object v0, p0, Lcom/ninesky/widget/SlidingToggle;->x:Landroid/widget/HorizontalScrollView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    invoke-virtual {v0, v1, v4}, Landroid/widget/HorizontalScrollView;->scrollTo(II)V

    move v0, v3

    goto :goto_1

    :cond_8
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->C:I

    goto :goto_4

    :pswitch_2
    iget-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    if-eqz v0, :cond_2

    iput-boolean v4, p0, Lcom/ninesky/widget/SlidingToggle;->w:Z

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->B:I

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->z:I

    if-lt v0, v1, :cond_a

    move v0, v4

    :goto_5
    iget-boolean v1, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    if-eq v1, v0, :cond_9

    iput-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    invoke-direct {p0}, Lcom/ninesky/widget/SlidingToggle;->c()V

    :cond_9
    iget-boolean v0, p0, Lcom/ninesky/widget/SlidingToggle;->k:Z

    invoke-direct {p0, v0}, Lcom/ninesky/widget/SlidingToggle;->b(Z)V

    move v0, v3

    goto/16 :goto_1

    :cond_a
    move v0, v3

    goto :goto_5

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public setEnabled(Z)V
    .locals 4

    const v3, 0x7f0c005b

    const v2, 0x7f0c0058

    const v1, 0x7f0c0057

    invoke-virtual {p0}, Lcom/ninesky/widget/SlidingToggle;->isEnabled()Z

    move-result v0

    if-eq v0, p1, :cond_2

    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setEnabled(Z)V

    if-eqz p1, :cond_3

    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->e:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :cond_0
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    if-eqz v0, :cond_1

    invoke-virtual {p0, v2}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->f:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :cond_1
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    if-eqz v0, :cond_2

    invoke-virtual {p0, v3}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->g:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    :cond_2
    :goto_0
    return-void

    :cond_3
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->h:I

    if-eqz v0, :cond_4

    invoke-virtual {p0, v1}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->h:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :cond_4
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->i:I

    if-eqz v0, :cond_5

    invoke-virtual {p0, v2}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->i:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :cond_5
    iget v0, p0, Lcom/ninesky/widget/SlidingToggle;->j:I

    if-eqz v0, :cond_2

    invoke-virtual {p0, v3}, Lcom/ninesky/widget/SlidingToggle;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iget v1, p0, Lcom/ninesky/widget/SlidingToggle;->j:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    goto :goto_0
.end method
